/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rrs;
public class CategoryPriceSchemeOne {
	
	int percentOff;
	int totalQuantity;
	int discountQuantity;
	
	public CategoryPriceSchemeOne(int percentOff, int totalQuantity, int discountQuantity) {
		this.percentOff = percentOff;
		this.totalQuantity = totalQuantity;
		this.discountQuantity = discountQuantity;
	}
	
	public double getPrice() {
		// Return the discounted quantity that needs to be multiplied with the price
		double actualPrice = totalQuantity;
		return actualPrice - ((percentOff/100) * discountQuantity);
	}
}
